home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20000217-20000824 / 000133_news@columbia.edu _Tue Mar 21 13:03:51 2000.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id NAA04344
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Tue, 21 Mar 2000 13:03:51 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id MAA09944
  7.     for kermit.misc@watsun.cc.columbia.edu; Tue, 21 Mar 2000 12:42:12 -0500 (EST)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Subject: Re: Automating Screen Activity Log
  11. Date: 21 Mar 2000 17:42:09 GMT
  12. Organization: Columbia University
  13. Message-ID: <8b8c9h$9ml$1@newsmaster.cc.columbia.edu>
  14. To: kermit.misc@columbia.edu
  15.  
  16. In article <38D7A0B2.5CFB3837@usa.alcatel.com>,
  17. Mike Cooley  <Michael.Cooley@usa.alcatel.com> wrote:
  18. : Can someone tell me how?  We're using the File: Open Logfile from the
  19. : scoterm window, but we would like to automate it so we can stop and
  20. : start new files daily.  Any suggestions?
  21. : What about sending the "altF" keystroke in a script?  As you can see I'm
  22. : at a complete loss.
  23. : We have a modem connection that is constantly dumping data to the screen
  24. : and to a file.  We would like to change the file name daily without
  25. : closing and reopening the connection.  The File:Open Logfile works fine,
  26. : but we have remember to do it.  It would be a lot easier if it could be
  27. : automated.
  28. SCOterm is like Xterm, right?
  29.  
  30. In that case, you could use C-Kermit as the communication software in the
  31. SCOterm window:
  32.  
  33.   http://www.columbia.edu/kermit/ckermit.html
  34.  
  35. Lots of sample scripts can be found here:
  36.  
  37.   http://www.columbia.edu/kermit/ckscripts.html
  38.  
  39. The trick for changing logs every 24 hours would be something like this:
  40.  
  41.   while true {
  42.      log session \v(ndate)_\v(ntime)_\v(pid).log  ; make unique filename
  43.      input 86400 SOME_STRING_THAT_WILL_NEVER_COME ; log for 24 hours
  44.      close session-log                            ; close log
  45.   }
  46.  
  47. Alternatively, to force the turnover to happen at midnight, you could use:
  48.  
  49.   while true {
  50.      log session \v(ndate)_\v(ntime)_\v(pid).log     ; make unique filename
  51.      input 23:59:59 SOME_STRING_THAT_WILL_NEVER_COME ; log until 23:59:59
  52.      close session-log                               ; close log
  53.      pause 2                                         ; wait till 00:00:01
  54.   }
  55.  
  56. Don't worry, nothing will be lost during the 2-second pause (assuming the
  57. connection is flow-controlled, etc).
  58.  
  59. - Frank